<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>测试应用</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>

    <link rel="stylesheet" href="../codemirror-4.10/lib/codemirror.css">
    <link rel="stylesheet" href="../codemirror-4.10/addon/display/fullscreen.css">
    <link rel="stylesheet" href="../codemirror-4.10/theme/midnight.css">
    <link rel="stylesheet" href="../codemirror-4.10/theme/eclipse.css">

    <link rel="stylesheet" href="../codemirror-4.10/addon/dialog/dialog.css">
    <link rel="stylesheet" href="../codemirror-4.10/addon/search/matchesonscrollbar.css">

    <script src="../codemirror-4.10/lib/codemirror.js"></script>
    <script src="../codemirror-4.10/mode/shell/shell.js"></script>


    <link rel="stylesheet" href="../codemirror-4.10/addon/hint/show-hint.css" />
    <script src="../codemirror-4.10/addon/hint/show-hint.js"></script>
    <script src="../codemirror-4.10/addon/display/fullscreen.js"></script>
    <script src="../codemirror-4.10/addon/selection/active-line.js"></script>

    <script src="../codemirror-4.10/keymap/sublime.js"></script>

    <script src="../codemirror-4.10/addon/dialog/dialog.js"></script>
    <script src="../codemirror-4.10/addon/search/searchcursor.js"></script>
    <script src="../codemirror-4.10/addon/search/search.js"></script>
    <script src="../codemirror-4.10/addon/scroll/annotatescrollbar.js"></script>
    <script src="../codemirror-4.10/addon/search/matchesonscrollbar.js"></script>


    <style type="text/css">
        body {line-height: 1}
        th {text-decoration: "auto"}
    </style>
</head>
<body  data-spy="scroll" data-target=".navbar">



<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>

<div class="container">


    <h4>${name}</h4>
    <div id="area">

    </div>



    <jsp:include page="common/common_js.jsp"></jsp:include>


    <script type="text/javascript" src="/js/manager.js"></script>

    <script>


        var app = '${name}';
        var version = '${version}';
        var slave = '${host}';


        var obj = $("#area");
        $.each(slave.split(","), function(i, n){

            var name = "area_" + n.replace(/\W/g, "");

            obj.append("<div id='" + name + "'" + ">" + n +"</div>")
            checkModule(app, n, {targetId: name});
        })





    </script>
</body>
</html>